<template>
    <div id="app">
        <schart :canvasId="canvasId"
            :type="type"
            :width="width"
            :height="height"
            :data="data"
            :options="options"
        ></schart>
    </div>
</template>
<script>
import Schart from 'vue-schart';
export default {
    data() {
        return {
            canvasId: 'myCanvas',
            type: 'line',
            width: 500,
            height: 400,
            data: [
                {name: '出生', value: 3.32},
                {name: '1个月', value: 4.51},
                {name: '1个月', value: 5.68},
                {name: '1个月', value: 6.7},
            ],
            options: {
                title: '体重曲线'
            }
        }
    },
    components:{
        Schart
    }
}
</script>

<style lang="scss">

</style>
